//package com.xspace.android.xafcommon.http;
//
//import com.xspace.android.xafcommon.http.req.UpgradeReq;
//import com.xspace.android.xafcommon.http.resp.UpgradeResp;
//import com.xspace.android.xafcommon.network.message.AResponseMsg;
//import com.xspace.android.xafcommon.network.message.ControlManage;
//import com.xspace.android.xafcommon.network.message.IResponseMsg;
//import com.xspace.android.xafcommon.network.message.SendRequestListener;
//
//
//public class NetControl extends ControlManage {
//    public static final String MSGTYPE_UPDATE = "update";
//
//    public NetControl(SendRequestListener listener) {
//        this.listener = listener;
//    }
//
//    /**
//     * @param @param user_id
//     * @param @param version_code
//     * @return
//     * @throws
//     * @Description: 升级
//     */
//    public int sendUpdate(String user_id, String departmentID, String mobile, String app_id, String imei,
//                          String baseband, String osversion, String manufacturer, String mac, String cpuinfo, String appversion,
//                          String area) {
//        UpgradeReq req = new UpgradeReq();
//        req.user_id = user_id;
//        req.imei = imei;
//        req.departmentID = departmentID;
//        req.mobile = mobile;
//        req.app_id = app_id;
//        req.baseband = baseband;
//        req.osversion = osversion;
//        req.manufacturer = manufacturer;
//        req.mac = mac;
//        req.cpuinfo = cpuinfo;
//        req.appversion = appversion;
//        req.area = area;
//        UpgradeResp resp = new UpgradeResp();
//        resp.msgType = MSGTYPE_UPDATE;
//        super.addTask(req, resp);
//        return req.serialID;
//    }
//
//    @Override
//    public void resultInfomation(IResponseMsg respMsg) {
//        AResponseMsg resp = (AResponseMsg) respMsg;
//        if (listener != null) {
//            listener.requestResult(resp.result, resp);
//        }
//    }
//
//}
